package com.ln.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/15 16:24
 */
@Component
@ConfigurationProperties(prefix = "ali")
public class AliPay {
    private String appid;
    private String rsaPrivateKey;
    private String notifyUrl;
    private String url;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getRsaPrivateKey() {
        return rsaPrivateKey;
    }

    public void setRsaPrivateKey(String rsaPrivateKey) {
        this.rsaPrivateKey = rsaPrivateKey;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "AliPay{" +
                "appid='" + appid + '\'' +
                ", rsaPrivateKey='" + rsaPrivateKey + '\'' +
                ", notifyUrl='" + notifyUrl + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
